/******/ (function(modules) { // webpackBootstrap
/******/ 	// install a JSONP callback for chunk loading
/******/ 	var parentJsonpFunction = window["webpackJsonp"];
/******/ 	window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
/******/ 		// add "moreModules" to the modules object,
/******/ 		// then flag all "chunkIds" as loaded and fire callback
/******/ 		var moduleId, chunkId, i = 0, callbacks = [];
/******/ 		for(;i < chunkIds.length; i++) {
/******/ 			chunkId = chunkIds[i];
/******/ 			if(installedChunks[chunkId])
/******/ 				callbacks.push.apply(callbacks, installedChunks[chunkId]);
/******/ 			installedChunks[chunkId] = 0;
/******/ 		}
/******/ 		for(moduleId in moreModules) {
/******/ 			if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ 				modules[moduleId] = moreModules[moduleId];
/******/ 			}
/******/ 		}
/******/ 		if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ 		while(callbacks.length)
/******/ 			callbacks.shift().call(null, __webpack_require__);
/******/ 		if(moreModules[0]) {
/******/ 			installedModules[0] = 0;
/******/ 			return __webpack_require__(0);
/******/ 		}
/******/ 	};

/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// object to store loaded and loading chunks
/******/ 	// "0" means "already loaded"
/******/ 	// Array means "loading", array contains callbacks
/******/ 	var installedChunks = {
/******/ 		9:0
/******/ 	};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}

/******/ 	// This file contains only the entry chunk.
/******/ 	// The chunk loading function for additional chunks
/******/ 	__webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ 		// "0" is the signal for "already loaded"
/******/ 		if(installedChunks[chunkId] === 0)
/******/ 			return callback.call(null, __webpack_require__);

/******/ 		// an array means "currently loading".
/******/ 		if(installedChunks[chunkId] !== undefined) {
/******/ 			installedChunks[chunkId].push(callback);
/******/ 		} else {
/******/ 			// start chunk loading
/******/ 			installedChunks[chunkId] = [callback];
/******/ 			var head = document.getElementsByTagName('head')[0];
/******/ 			var script = document.createElement('script');
/******/ 			script.type = 'text/javascript';
/******/ 			script.charset = 'utf-8';
/******/ 			script.async = true;

/******/ 			script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"\\index\\history","1":"\\index\\history_head","2":"\\index\\main","3":"\\index\\test","4":"\\index\\test_head","5":"\\index\\videolist","6":"\\index\\videolist_head","7":"\\public\\login","8":"\\public\\web"}[chunkId]||chunkId) + ".js";
/******/ 			head.appendChild(script);
/******/ 		}
/******/ 	};

/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/ })
/************************************************************************/
/******/ ([
/* 0 */,
/* 1 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(2)
	__webpack_require__(3)
	var Config 		= __webpack_require__(4)
	var HEvent 		= __webpack_require__(5)
	var HRequest 	= __webpack_require__(6)
	var HPage 		= __webpack_require__(7)
	var USER 		= __webpack_require__(9)

	Config.e = HEvent;		//事件
	Config.r = HRequest;	//请求
	Config.w = HPage;		//窗口
	Config.u = USER;

	module.exports = Config


/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_RESULT__;/* Zepto 1.2.0 - zepto event ajax form ie fx_methods fx deferred callbacks touch - zeptojs.com/license */
	!function(t,e){ true?!(__WEBPACK_AMD_DEFINE_RESULT__ = function(){return e(t)}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):e(t)}(window,function(t){var e=function(){function D(t){return null==t?String(t):j[S.call(t)]||"object"}function L(t){return"function"==D(t)}function k(t){return null!=t&&t==t.window}function F(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function $(t){return"object"==D(t)}function R(t){return $(t)&&!k(t)&&Object.getPrototypeOf(t)==Object.prototype}function Z(t){var e=!!t&&"length"in t&&t.length,n=i.type(t);return"function"!=n&&!k(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function z(t){return a.call(t,function(t){return null!=t})}function _(t){return t.length>0?i.fn.concat.apply([],t):t}function q(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function I(t){return t in l?l[t]:l[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function W(t,e){return"number"!=typeof e||h[q(t)]?e:e+"px"}function X(t){var e,n;return c[t]||(e=f.createElement(t),f.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),c[t]=n),c[t]}function H(t){return"children"in t?u.call(t.children):i.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function U(t,e){var n,i=t?t.length:0;for(n=0;i>n;n++)this[n]=t[n];this.length=i,this.selector=e||""}function V(t,i,r){for(n in i)r&&(R(i[n])||M(i[n]))?(R(i[n])&&!R(t[n])&&(t[n]={}),M(i[n])&&!M(t[n])&&(t[n]=[]),V(t[n],i[n],r)):i[n]!==e&&(t[n]=i[n])}function Y(t,e){return null==e?i(t):i(t).filter(e)}function B(t,e,n,i){return L(e)?e.call(t,n,i):e}function J(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function G(t,n){var i=t.className||"",r=i&&i.baseVal!==e;return n===e?r?i.baseVal:i:void(r?i.baseVal=n:t.className=n)}function K(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?i.parseJSON(t):t):t}catch(e){return t}}function Q(t,e){e(t);for(var n=0,i=t.childNodes.length;i>n;n++)Q(t.childNodes[n],e)}var e,n,i,r,N,P,o=[],s=o.concat,a=o.filter,u=o.slice,f=t.document,c={},l={},h={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,g=/^(?:body|html)$/i,y=/([A-Z])/g,v=["val","css","html","text","data","width","height","offset"],b=["after","prepend","before","append"],x=f.createElement("table"),w=f.createElement("tr"),E={tr:f.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:w,th:w,"*":f.createElement("div")},T=/^[\w-]*$/,j={},S=j.toString,C={},O=f.createElement("div"),A={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},M=Array.isArray||function(t){return t instanceof Array};return C.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=O).appendChild(t),i=~C.qsa(r,e).indexOf(t),o&&O.removeChild(t),i},N=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},P=function(t){return a.call(t,function(e,n){return t.indexOf(e)==n})},C.fragment=function(t,n,r){var o,s,a;return d.test(t)&&(o=i(f.createElement(RegExp.$1))),o||(t.replace&&(t=t.replace(m,"<$1></$2>")),n===e&&(n=p.test(t)&&RegExp.$1),n in E||(n="*"),a=E[n],a.innerHTML=""+t,o=i.each(u.call(a.childNodes),function(){a.removeChild(this)})),R(r)&&(s=i(o),i.each(r,function(t,e){v.indexOf(t)>-1?s[t](e):s.attr(t,e)})),o},C.Z=function(t,e){return new U(t,e)},C.isZ=function(t){return t instanceof C.Z},C.init=function(t,n){var r;if(!t)return C.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&p.test(t))r=C.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);r=C.qsa(f,t)}else{if(L(t))return i(f).ready(t);if(C.isZ(t))return t;if(M(t))r=z(t);else if($(t))r=[t],t=null;else if(p.test(t))r=C.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);r=C.qsa(f,t)}}return C.Z(r,t)},i=function(t,e){return C.init(t,e)},i.extend=function(t){var e,n=u.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){V(t,n,e)}),t},C.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],o=i||r?e.slice(1):e,s=T.test(o);return t.getElementById&&s&&i?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:u.call(s&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},i.contains=f.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},i.type=D,i.isFunction=L,i.isWindow=k,i.isArray=M,i.isPlainObject=R,i.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},i.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},i.inArray=function(t,e,n){return o.indexOf.call(e,t,n)},i.camelCase=N,i.trim=function(t){return null==t?"":String.prototype.trim.call(t)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(t,e){var n,r,o,i=[];if(Z(t))for(r=0;r<t.length;r++)n=e(t[r],r),null!=n&&i.push(n);else for(o in t)n=e(t[o],o),null!=n&&i.push(n);return _(i)},i.each=function(t,e){var n,i;if(Z(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(i in t)if(e.call(t[i],i,t[i])===!1)return t;return t},i.grep=function(t,e){return a.call(t,e)},t.JSON&&(i.parseJSON=JSON.parse),i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){j["[object "+e+"]"]=e.toLowerCase()}),i.fn={constructor:C.Z,length:0,forEach:o.forEach,reduce:o.reduce,push:o.push,sort:o.sort,splice:o.splice,indexOf:o.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=C.isZ(e)?e.toArray():e;return s.apply(C.isZ(this)?this.toArray():this,n)},map:function(t){return i(i.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return i(u.apply(this,arguments))},ready:function(e){if("complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)setTimeout(function(){e(i)},0);else{var n=function(){f.removeEventListener("DOMContentLoaded",n,!1),t.removeEventListener("load",n,!1),e(i)};f.addEventListener("DOMContentLoaded",n,!1),t.addEventListener("load",n,!1)}return this},get:function(t){return t===e?u.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return o.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return L(t)?this.not(this.not(t)):i(a.call(this,function(e){return C.matches(e,t)}))},add:function(t,e){return i(P(this.concat(i(t,e))))},is:function(t){return"string"==typeof t?this.length>0&&C.matches(this[0],t):t&&this.selector==t.selector},not:function(t){var n=[];if(L(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var r="string"==typeof t?this.filter(t):Z(t)&&L(t.item)?u.call(t):i(t);this.forEach(function(t){r.indexOf(t)<0&&n.push(t)})}return i(n)},has:function(t){return this.filter(function(){return $(t)?i.contains(this,t):i(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!$(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!$(t)?t:i(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?i(t).filter(function(){var t=this;return o.some.call(n,function(e){return i.contains(e,t)})}):1==this.length?i(C.qsa(this[0],t)):this.map(function(){return C.qsa(this,t)}):i()},closest:function(t,e){var n=[],r="object"==typeof t&&i(t);return this.each(function(i,o){for(;o&&!(r?r.indexOf(o)>=0:C.matches(o,t));)o=o!==e&&!F(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)}),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,function(t){return(t=t.parentNode)&&!F(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return Y(e,t)},parent:function(t){return Y(P(this.pluck("parentNode")),t)},children:function(t){return Y(this.map(function(){return H(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||u.call(this.childNodes)})},siblings:function(t){return Y(this.map(function(t,e){return a.call(H(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return i.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=X(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=L(t);if(this[0]&&!e)var n=i(t).get(0),r=n.parentNode||this.length>1;return this.each(function(o){i(this).wrapAll(e?t.call(this,o):r?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){i(this[0]).before(t=i(t));for(var e;(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=L(t);return this.each(function(n){var r=i(this),o=r.contents(),s=e?t.call(this,n):t;o.length?o.wrapAll(s):r.append(s)})},unwrap:function(){return this.parent().each(function(){i(this).replaceWith(i(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;i(this).empty().append(B(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=B(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var r;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if($(t))for(n in t)J(this,n,t[n]);else J(this,t,B(this,i,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(t))?r:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){J(this,t)},this)})},prop:function(t,e){return t=A[t]||t,"string"!=typeof t||1 in arguments?this.each(function(i){if($(t))for(n in t)this[A[n]||n]=t[n];else this[t]=B(this,e,i,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=A[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var i="data-"+t.replace(y,"-$1").toLowerCase(),r=1 in arguments?this.attr(i,n):this.attr(i);return null!==r?K(r):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=B(this,t,e,this.value)})):this[0]&&(this[0].multiple?i(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=i(this),r=B(this,e,t,n.offset()),o=n.offsetParent().offset(),s={top:r.top-o.top,left:r.left-o.left};"static"==n.css("position")&&(s.position="relative"),n.css(s)});if(!this.length)return null;if(f.documentElement!==this[0]&&!i.contains(f.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var r=this[0];if("string"==typeof t){if(!r)return;return r.style[N(t)]||getComputedStyle(r,"").getPropertyValue(t)}if(M(t)){if(!r)return;var o={},s=getComputedStyle(r,"");return i.each(t,function(t,e){o[e]=r.style[N(e)]||s.getPropertyValue(e)}),o}}var a="";if("string"==D(t))e||0===e?a=q(t)+":"+W(t,e):this.each(function(){this.style.removeProperty(q(t))});else for(n in t)t[n]||0===t[n]?a+=q(n)+":"+W(n,t[n])+";":this.each(function(){this.style.removeProperty(q(n))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?o.some.call(this,function(t){return this.test(G(t))},I(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){r=[];var n=G(this),o=B(this,t,e,n);o.split(/\s+/g).forEach(function(t){i(this).hasClass(t)||r.push(t)},this),r.length&&G(this,n+(n?" ":"")+r.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===e)return G(this,"");r=G(this),B(this,t,n,r).split(/\s+/g).forEach(function(t){r=r.replace(I(t)," ")}),G(this,r.trim())}})},toggleClass:function(t,n){return t?this.each(function(r){var o=i(this),s=B(this,t,r,G(this));s.split(/\s+/g).forEach(function(t){(n===e?!o.hasClass(t):n)?o.addClass(t):o.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),r=g.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,r.top+=parseFloat(i(e[0]).css("border-top-width"))||0,r.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||f.body;t&&!g.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t})}},i.fn.detach=i.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});i.fn[t]=function(r){var o,s=this[0];return r===e?k(s)?s["inner"+n]:F(s)?s.documentElement["scroll"+n]:(o=this.offset())&&o[t]:this.each(function(e){s=i(this),s.css(t,B(this,r,e,s[t]()))})}}),b.forEach(function(n,r){var o=r%2;i.fn[n]=function(){var n,a,s=i.map(arguments,function(t){var r=[];return n=D(t),"array"==n?(t.forEach(function(t){return t.nodeType!==e?r.push(t):i.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(C.fragment(t)))}),r):"object"==n||null==t?t:C.fragment(t)}),u=this.length>1;return s.length<1?this:this.each(function(e,n){a=o?n:n.parentNode,n=0==r?n.nextSibling:1==r?n.firstChild:2==r?n:null;var c=i.contains(f.documentElement,a);s.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!a)return i(e).remove();a.insertBefore(e,n),c&&Q(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},i.fn[o?n+"To":"insert"+(r?"Before":"After")]=function(t){return i(t)[n](this),this}}),C.Z.prototype=U.prototype=i.fn,C.uniq=P,C.deserializeValue=K,i.zepto=C,i}();return t.Zepto=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,i){if(e=d(e),e.ns)var r=m(e.ns);return(a[h(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||r.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!i||t.sel==i)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function m(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function g(t,e){return t.del&&!f&&t.e in c||!!e}function y(t){return l[t]||f&&c[t]||t}function v(t,n,r,o,s,u,f){var c=h(t),p=a[c]||(a[c]=[]);n.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(r);var a=d(n);a.fn=r,a.sel=s,a.e in l&&(r=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?a.fn.apply(this,arguments):void 0}),a.del=u;var c=u||r;a.proxy=function(e){if(e=j(e),!e.isImmediatePropagationStopped()){e.data=o;var n=c.apply(t,e._args==i?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},a.i=p.length,p.push(a),"addEventListener"in t&&t.addEventListener(y(a.e),a.proxy,g(a,f))})}function b(t,e,n,i,r){var o=h(t);(e||"").split(/\s/).forEach(function(e){p(t,e,n,i).forEach(function(e){delete a[o][e.i],"removeEventListener"in t&&t.removeEventListener(y(e.e),e.proxy,g(e,r))})})}function j(t,n){if(n||!t.isDefaultPrevented){n||(n=t),e.each(T,function(e,i){var r=n[e];t[e]=function(){return this[i]=x,r&&r.apply(n,arguments)},t[i]=w});try{t.timeStamp||(t.timeStamp=Date.now())}catch(r){}(n.defaultPrevented!==i?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=x)}return t}function S(t){var e,n={originalEvent:t};for(e in t)E.test(e)||t[e]===i||(n[e]=t[e]);return j(n,t)}var i,n=1,r=Array.prototype.slice,o=e.isFunction,s=function(t){return"string"==typeof t},a={},u={},f="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:v,remove:b},e.proxy=function(t,n){var i=2 in arguments&&r.call(arguments,2);if(o(t)){var a=function(){return t.apply(n,i?i.concat(r.call(arguments)):arguments)};return a._zid=h(t),a}if(s(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var x=function(){return!0},w=function(){return!1},E=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,T={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,a,u,f){var c,l,h=this;return t&&!s(t)?(e.each(t,function(t,e){h.on(t,n,a,e,f)}),h):(s(n)||o(u)||u===!1||(u=a,a=n,n=i),(u===i||a===!1)&&(u=a,a=i),u===!1&&(u=w),h.each(function(i,o){f&&(c=function(t){return b(o,t.type,u),u.apply(this,arguments)}),n&&(l=function(t){var i,s=e(t.target).closest(n,o).get(0);return s&&s!==o?(i=e.extend(S(t),{currentTarget:s,liveFired:o}),(c||u).apply(s,[i].concat(r.call(arguments,1)))):void 0}),v(o,t,u,a,n,l||c)}))},e.fn.off=function(t,n,r){var a=this;return t&&!s(t)?(e.each(t,function(t,e){a.off(t,n,e)}),a):(s(n)||o(r)||r===!1||(r=n,n=i),r===!1&&(r=w),a.each(function(){b(this,t,r,n)}))},e.fn.trigger=function(t,n){return t=s(t)||e.isPlainObject(t)?e.Event(t):j(t),t._args=n,this.each(function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var i,r;return this.each(function(o,a){i=S(s(t)?e.Event(t):t),i._args=n,i.target=a,e.each(p(a,t.type||t),function(t,e){return r=e.proxy(i),i.isImmediatePropagationStopped()?!1:void 0})}),r},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){s(t)||(e=t,t=e.type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),j(n)}}(e),function(e){function p(t,n,i){var r=e.Event(n);return e(t).trigger(r,i),!r.isDefaultPrevented()}function d(t,e,n,r){return t.global?p(e||i,n,r):void 0}function m(t){t.global&&0===e.active++&&d(t,null,"ajaxStart")}function g(t){t.global&&!--e.active&&d(t,null,"ajaxStop")}function y(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||d(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void d(e,n,"ajaxSend",[t,e])}function v(t,e,n,i){var r=n.context,o="success";n.success.call(r,t,o,e),i&&i.resolveWith(r,[t,o,e]),d(n,r,"ajaxSuccess",[e,n,t]),x(o,e,n)}function b(t,e,n,i,r){var o=i.context;i.error.call(o,n,e,t),r&&r.rejectWith(o,[n,e,t]),d(i,o,"ajaxError",[n,i,t||e]),x(e,n,i)}function x(t,e,n){var i=n.context;n.complete.call(i,e,t),d(n,i,"ajaxComplete",[e,n]),g(n)}function w(t,e,n){if(n.dataFilter==E)return t;var i=n.context;return n.dataFilter.call(i,t,e)}function E(){}function T(t){return t&&(t=t.split(";",2)[0]),t&&(t==c?"html":t==f?"json":a.test(t)?"script":u.test(t)&&"xml")||"text"}function j(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function S(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=j(t.url,t.data),t.data=void 0)}function C(t,n,i,r){return e.isFunction(n)&&(r=i,i=n,n=void 0),e.isFunction(i)||(r=i,i=void 0),{url:t,data:n,success:i,dataType:r}}function P(t,n,i,r){var o,s=e.isArray(n),a=e.isPlainObject(n);e.each(n,function(n,u){o=e.type(u),r&&(n=i?r:r+"["+(a||"object"==o||"array"==o?n:"")+"]"),!r&&s?t.add(u.name,u.value):"array"==o||!i&&"object"==o?P(t,u,i,n):t.add(n,u)})}var r,o,n=+new Date,i=t.document,s=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,u=/^(?:text|application)\/xml/i,f="application/json",c="text/html",l=/^\s*$/,h=i.createElement("a");h.href=t.location.href,e.active=0,e.ajaxJSONP=function(r,o){if(!("type"in r))return e.ajax(r);var c,p,s=r.jsonpCallback,a=(e.isFunction(s)?s():s)||"Zepto"+n++,u=i.createElement("script"),f=t[a],l=function(t){e(u).triggerHandler("error",t||"abort")},h={abort:l};return o&&o.promise(h),e(u).on("load error",function(n,i){clearTimeout(p),e(u).off().remove(),"error"!=n.type&&c?v(c[0],h,r,o):b(null,i||"error",h,r,o),t[a]=f,c&&e.isFunction(f)&&f(c[0]),f=c=void 0}),y(h,r)===!1?(l("abort"),h):(t[a]=function(){c=arguments},u.src=r.url.replace(/\?(.+)=\?/,"?$1="+a),i.head.appendChild(u),r.timeout>0&&(p=setTimeout(function(){l("timeout")},r.timeout)),h)},e.ajaxSettings={type:"GET",beforeSend:E,success:E,error:E,complete:E,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:f,xml:"application/xml, text/xml",html:c,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:E},e.ajax=function(n){var u,f,s=e.extend({},n||{}),a=e.Deferred&&e.Deferred();for(r in e.ajaxSettings)void 0===s[r]&&(s[r]=e.ajaxSettings[r]);m(s),s.crossDomain||(u=i.createElement("a"),u.href=s.url,u.href=u.href,s.crossDomain=h.protocol+"//"+h.host!=u.protocol+"//"+u.host),s.url||(s.url=t.location.toString()),(f=s.url.indexOf("#"))>-1&&(s.url=s.url.slice(0,f)),S(s);var c=s.dataType,p=/\?.+=\?/.test(s.url);if(p&&(c="jsonp"),s.cache!==!1&&(n&&n.cache===!0||"script"!=c&&"jsonp"!=c)||(s.url=j(s.url,"_="+Date.now())),"jsonp"==c)return p||(s.url=j(s.url,s.jsonp?s.jsonp+"=?":s.jsonp===!1?"":"callback=?")),e.ajaxJSONP(s,a);var O,d=s.accepts[c],g={},x=function(t,e){g[t.toLowerCase()]=[t,e]},C=/^([\w-]+:)\/\//.test(s.url)?RegExp.$1:t.location.protocol,N=s.xhr(),P=N.setRequestHeader;if(a&&a.promise(N),s.crossDomain||x("X-Requested-With","XMLHttpRequest"),x("Accept",d||"*/*"),(d=s.mimeType||d)&&(d.indexOf(",")>-1&&(d=d.split(",",2)[0]),N.overrideMimeType&&N.overrideMimeType(d)),(s.contentType||s.contentType!==!1&&s.data&&"GET"!=s.type.toUpperCase())&&x("Content-Type",s.contentType||"application/x-www-form-urlencoded"),s.headers)for(o in s.headers)x(o,s.headers[o]);if(N.setRequestHeader=x,N.onreadystatechange=function(){if(4==N.readyState){N.onreadystatechange=E,clearTimeout(O);var t,n=!1;if(N.status>=200&&N.status<300||304==N.status||0==N.status&&"file:"==C){if(c=c||T(s.mimeType||N.getResponseHeader("content-type")),"arraybuffer"==N.responseType||"blob"==N.responseType)t=N.response;else{t=N.responseText;try{t=w(t,c,s),"script"==c?(1,eval)(t):"xml"==c?t=N.responseXML:"json"==c&&(t=l.test(t)?null:e.parseJSON(t))}catch(i){n=i}if(n)return b(n,"parsererror",N,s,a)}v(t,N,s,a)}else b(N.statusText||null,N.status?"error":"abort",N,s,a)}},y(N,s)===!1)return N.abort(),b(null,"abort",N,s,a),N;var A="async"in s?s.async:!0;if(N.open(s.type,s.url,A,s.username,s.password),s.xhrFields)for(o in s.xhrFields)N[o]=s.xhrFields[o];for(o in g)P.apply(N,g[o]);return s.timeout>0&&(O=setTimeout(function(){N.onreadystatechange=E,N.abort(),b(null,"timeout",N,s,a)},s.timeout)),N.send(s.data?s.data:null),N},e.get=function(){return e.ajax(C.apply(null,arguments))},e.post=function(){var t=C.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=C.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,i){if(!this.length)return this;var a,r=this,o=t.split(/\s/),u=C(t,n,i),f=u.success;return o.length>1&&(u.url=o[0],a=o[1]),u.success=function(t){r.html(a?e("<div>").html(t.replace(s,"")).find(a):t),f&&f.apply(r,arguments)},e.ajax(u),this};var N=encodeURIComponent;e.param=function(t,n){var i=[];return i.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(N(t)+"="+N(n))},P(i,t,n),i.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,i=[],r=function(t){return t.forEach?t.forEach(r):void i.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(i,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodeName.toLowerCase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&r(t(o).val())}),i},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;t.getComputedStyle=function(t,e){try{return n(t,e)}catch(i){return null}}}}(),function(e,n){function a(t,i,r,o,s){"function"!=typeof i||s||(s=i,i=n);var a={opacity:r};return o&&(a.scale=o,t.css(e.fx.cssPrefix+"transform-origin","0 0")),t.animate(a,i,null,s)}function u(t,n,i,r){return a(t,n,0,i,function(){o.call(e(this)),r&&r.call(this)})}var r=(t.document,e.fn.show),o=e.fn.hide,s=e.fn.toggle;e.fn.show=function(t,e){return r.call(this),t===n?t=0:this.css("opacity",0),a(this,t,1,"1,1",e)},e.fn.hide=function(t,e){return t===n?o.call(this):u(this,t,"0,0",e)},e.fn.toggle=function(t,i){return t===n||"boolean"==typeof t?s.call(this,t):this.each(function(){var n=e(this);n["none"==n.css("display")?"show":"hide"](t,i)})},e.fn.fadeTo=function(t,e,n){return a(this,t,e,null,n)},e.fn.fadeIn=function(t,e){var n=this.css("opacity");return n>0?this.css("opacity",0):n=1,r.call(this).fadeTo(t,n,e)},e.fn.fadeOut=function(t,e){return u(this,t,null,e)},e.fn.fadeToggle=function(t,n){return this.each(function(){var i=e(this);i[0==i.css("opacity")||"none"==i.css("display")?"fadeIn":"fadeOut"](t,n)})}}(e),function(t,e){function y(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function v(t){return i?i+t:t.toLowerCase()}var i,a,u,f,c,l,h,p,d,m,n="",r={Webkit:"webkit",Moz:"",O:"o"},o=document.createElement("div"),s=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,g={};o.style.transform===e&&t.each(r,function(t,r){return o.style[t+"TransitionProperty"]!==e?(n="-"+t.toLowerCase()+"-",i=r,!1):void 0}),a=n+"transform",g[u=n+"transition-property"]=g[f=n+"transition-duration"]=g[l=n+"transition-delay"]=g[c=n+"transition-timing-function"]=g[h=n+"animation-name"]=g[p=n+"animation-duration"]=g[m=n+"animation-delay"]=g[d=n+"animation-timing-function"]="",t.fx={off:i===e&&o.style.transitionProperty===e,speeds:{_default:400,fast:200,slow:600},cssPrefix:n,transitionEnd:v("TransitionEnd"),animationEnd:v("AnimationEnd")},t.fn.animate=function(n,i,r,o,s){return t.isFunction(i)&&(o=i,r=e,i=e),t.isFunction(r)&&(o=r,r=e),t.isPlainObject(i)&&(r=i.easing,o=i.complete,s=i.delay,i=i.duration),i&&(i=("number"==typeof i?i:t.fx.speeds[i]||t.fx.speeds._default)/1e3),s&&(s=parseFloat(s)/1e3),this.anim(n,i,r,o,s)},t.fn.anim=function(n,i,r,o,v){var b,w,j,x={},E="",T=this,S=t.fx.transitionEnd,C=!1;if(i===e&&(i=t.fx.speeds._default/1e3),v===e&&(v=0),t.fx.off&&(i=0),"string"==typeof n)x[h]=n,x[p]=i+"s",x[m]=v+"s",x[d]=r||"linear",S=t.fx.animationEnd;else{w=[];for(b in n)s.test(b)?E+=b+"("+n[b]+") ":(x[b]=n[b],w.push(y(b)));E&&(x[a]=E,w.push(a)),i>0&&"object"==typeof n&&(x[u]=w.join(", "),x[f]=i+"s",x[l]=v+"s",x[c]=r||"linear")}return j=function(e){if("undefined"!=typeof e){if(e.target!==e.currentTarget)return;t(e.target).unbind(S,j)}else t(this).unbind(S,j);C=!0,t(this).css(g),o&&o.call(this)},i>0&&(this.bind(S,j),setTimeout(function(){C||j.call(T)},1e3*(i+v)+25)),this.size()&&this.get(0).clientLeft,this.css(x),0>=i&&setTimeout(function(){T.each(function(){j.call(this)})},0),this},o=null}(e),function(t){function n(e){var i=[["resolve","done",t.Callbacks({once:1,memory:1}),"resolved"],["reject","fail",t.Callbacks({once:1,memory:1}),"rejected"],["notify","progress",t.Callbacks({memory:1})]],r="pending",o={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var e=arguments;return n(function(n){t.each(i,function(i,r){var a=t.isFunction(e[i])&&e[i];s[r[1]](function(){var e=a&&a.apply(this,arguments);if(e&&t.isFunction(e.promise))e.promise().done(n.resolve).fail(n.reject).progress(n.notify);else{var i=this===o?n.promise():this,s=a?[e]:arguments;n[r[0]+"With"](i,s)}})}),e=null}).promise()},promise:function(e){return null!=e?t.extend(e,o):o}},s={};return t.each(i,function(t,e){var n=e[2],a=e[3];o[e[1]]=n.add,a&&n.add(function(){r=a},i[1^t][2].disable,i[2][2].lock),s[e[0]]=function(){return s[e[0]+"With"](this===s?o:this,arguments),this},s[e[0]+"With"]=n.fireWith}),o.promise(s),e&&e.call(s,s),s}var e=Array.prototype.slice;t.when=function(i){var f,c,l,r=e.call(arguments),o=r.length,s=0,a=1!==o||i&&t.isFunction(i.promise)?o:0,u=1===a?i:n(),h=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?e.call(arguments):r,i===f?u.notifyWith(n,i):--a||u.resolveWith(n,i)}};if(o>1)for(f=new Array(o),c=new Array(o),l=new Array(o);o>s;++s)r[s]&&t.isFunction(r[s].promise)?r[s].promise().done(h(s,l,r)).fail(u.reject).progress(h(s,c,f)):--a;return a||u.resolveWith(l,r),u.promise()},t.Deferred=n}(e),function(t){t.Callbacks=function(e){e=t.extend({},e);var n,i,r,o,s,a,u=[],f=!e.once&&[],c=function(t){for(n=e.memory&&t,i=!0,a=o||0,o=0,s=u.length,r=!0;u&&s>a;++a)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}r=!1,u&&(f?f.length&&c(f.shift()):n?u.length=0:l.disable())},l={add:function(){if(u){var i=u.length,a=function(n){t.each(n,function(t,n){"function"==typeof n?e.unique&&l.has(n)||u.push(n):n&&n.length&&"string"!=typeof n&&a(n)})};a(arguments),r?s=u.length:n&&(o=i,c(n))}return this},remove:function(){return u&&t.each(arguments,function(e,n){for(var i;(i=t.inArray(n,u,i))>-1;)u.splice(i,1),r&&(s>=i&&--s,a>=i&&--a)}),this},has:function(e){return!(!u||!(e?t.inArray(e,u)>-1:u.length))},empty:function(){return s=u.length=0,this},disable:function(){return u=f=n=void 0,this},disabled:function(){return!u},lock:function(){return f=void 0,n||l.disable(),this},locked:function(){return!f},fireWith:function(t,e){return!u||i&&!f||(e=e||[],e=[t,e.slice?e.slice():e],
	r?f.push(e):c(e)),this},fire:function(){return l.fireWith(this,arguments)},fired:function(){return!!i}};return l}}(e),function(e){function d(t,e,n,i){return Math.abs(t-e)>=Math.abs(n-i)?t-e>0?"Left":"Right":n-i>0?"Up":"Down"}function m(){s=null,n.last&&(n.el.trigger("longTap"),n={})}function g(){s&&clearTimeout(s),s=null}function y(){i&&clearTimeout(i),r&&clearTimeout(r),o&&clearTimeout(o),s&&clearTimeout(s),i=r=o=s=null,n={}}function v(t){return("touch"==t.pointerType||t.pointerType==t.MSPOINTER_TYPE_TOUCH)&&t.isPrimary}function b(t,e){return t.type=="pointer"+e||t.type.toLowerCase()=="mspointer"+e}function x(){p&&(e(document).off(h.down,f).off(h.up,c).off(h.move,l).off(h.cancel,y),e(t).off("scroll",y),y(),p=!1)}function w(w){var E,T,C,N,j=0,S=0;x(),h=w&&"down"in w?w:"ontouchstart"in document?{down:"touchstart",up:"touchend",move:"touchmove",cancel:"touchcancel"}:"onpointerdown"in document?{down:"pointerdown",up:"pointerup",move:"pointermove",cancel:"pointercancel"}:"onmspointerdown"in document?{down:"MSPointerDown",up:"MSPointerUp",move:"MSPointerMove",cancel:"MSPointerCancel"}:!1,h&&("MSGesture"in t&&(u=new MSGesture,u.target=document.body,e(document).bind("MSGestureEnd",function(t){var e=t.velocityX>1?"Right":t.velocityX<-1?"Left":t.velocityY>1?"Down":t.velocityY<-1?"Up":null;e&&(n.el.trigger("swipe"),n.el.trigger("swipe"+e))})),f=function(t){(!(N=b(t,"down"))||v(t))&&(C=N?t:t.touches[0],t.touches&&1===t.touches.length&&n.x2&&(n.x2=void 0,n.y2=void 0),E=Date.now(),T=E-(n.last||E),n.el=e("tagName"in C.target?C.target:C.target.parentNode),i&&clearTimeout(i),n.x1=C.pageX,n.y1=C.pageY,T>0&&250>=T&&(n.isDoubleTap=!0),n.last=E,s=setTimeout(m,a),u&&N&&u.addPointer(t.pointerId))},l=function(t){(!(N=b(t,"move"))||v(t))&&(C=N?t:t.touches[0],g(),n.x2=C.pageX,n.y2=C.pageY,j+=Math.abs(n.x1-n.x2),S+=Math.abs(n.y1-n.y2))},c=function(t){(!(N=b(t,"up"))||v(t))&&(g(),n.x2&&Math.abs(n.x1-n.x2)>30||n.y2&&Math.abs(n.y1-n.y2)>30?o=setTimeout(function(){n.el&&(n.el.trigger("swipe"),n.el.trigger("swipe"+d(n.x1,n.x2,n.y1,n.y2))),n={}},0):"last"in n&&(30>j&&30>S?r=setTimeout(function(){var t=e.Event("tap");t.cancelTouch=y,n.el&&n.el.trigger(t),n.isDoubleTap?(n.el&&n.el.trigger("doubleTap"),n={}):i=setTimeout(function(){i=null,n.el&&n.el.trigger("singleTap"),n={}},250)},0):n={}),j=S=0)},e(document).on(h.up,c).on(h.down,f).on(h.move,l),e(document).on(h.cancel,y),e(t).on("scroll",y),p=!0)}var i,r,o,s,u,f,c,l,h,n={},a=750,p=!1;["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(t){e.fn[t]=function(e){return this.on(t,e)}}),e.touch={setup:w},e(document).ready(w)}(e),e});


/***/ }),
/* 3 */
/***/ (function(module, exports) {

	/*
	 * APICloud JavaScript Library
	 * Copyright (c) 2014 apicloud.com
	 */
	(function(window){
	    var u = {};
	    var isAndroid = (/android/gi).test(navigator.appVersion);
	    var uzStorage = function(){
	        var ls = window.localStorage;
	        if(isAndroid){
	           ls = os.localStorage();
	        }
	        return ls;
	    };
	    function parseArguments(url, data, fnSuc, dataType) {
	        if (typeof(data) == 'function') {
	            dataType = fnSuc;
	            fnSuc = data;
	            data = undefined;
	        }
	        if (typeof(fnSuc) != 'function') {
	            dataType = fnSuc;
	            fnSuc = undefined;
	        }
	        return {
	            url: url,
	            data: data,
	            fnSuc: fnSuc,
	            dataType: dataType
	        };
	    }
	    u.trim = function(str){
	        if(String.prototype.trim){
	            return str == null ? "" : String.prototype.trim.call(str);
	        }else{
	            return str.replace(/(^\s*)|(\s*$)/g, "");
	        }
	    };
	    u.trimAll = function(str){
	        return str.replace(/\s*/g,'');
	    };
	    u.isElement = function(obj){
	        return !!(obj && obj.nodeType == 1);
	    };
	    u.isArray = function(obj){
	        if(Array.isArray){
	            return Array.isArray(obj);
	        }else{
	            return obj instanceof Array;
	        }
	    };
	    u.isEmptyObject = function(obj){
	        if(JSON.stringify(obj) === '{}'){
	            return true;
	        }
	        return false;
	    };
	    u.addEvt = function(el, name, fn, useCapture){
	        if(!u.isElement(el)){
	            console.warn('$api.addEvt Function need el param, el param must be DOM Element');
	            return;
	        }
	        useCapture = useCapture || false;
	        if(el.addEventListener) {
	            el.addEventListener(name, fn, useCapture);
	        }
	    };
	    u.rmEvt = function(el, name, fn, useCapture){
	        if(!u.isElement(el)){
	            console.warn('$api.rmEvt Function need el param, el param must be DOM Element');
	            return;
	        }
	        useCapture = useCapture || false;
	        if (el.removeEventListener) {
	            el.removeEventListener(name, fn, useCapture);
	        }
	    };
		
	    u.one = function(el, name, fn, useCapture){
	        if(!u.isElement(el)){
	            console.warn('$api.one Function need el param, el param must be DOM Element');
	            return;
	        }
	        useCapture = useCapture || false;
	        var that = this;
	        var cb = function(){
	            fn && fn();
	            that.rmEvt(el, name, cb, useCapture);
	        };
	        that.addEvt(el, name, cb, useCapture);
	    };
	    u.dom = function(el, selector){
	        if(arguments.length === 1 && typeof arguments[0] == 'string'){
	            if(document.querySelector){
	                return document.querySelector(arguments[0]);
	            }
	        }else if(arguments.length === 2){
	            if(el.querySelector){
	                return el.querySelector(selector);
	            }
	        }
	    };
	    u.domAll = function(el, selector){
	        if(arguments.length === 1 && typeof arguments[0] == 'string'){
	            if(document.querySelectorAll){
	                return document.querySelectorAll(arguments[0]);
	            }
	        }else if(arguments.length === 2){
	            if(el.querySelectorAll){
	                return el.querySelectorAll(selector);
	            }
	        }
	    };
	    u.byId = function(id){
	        return document.getElementById(id);
	    };
	    u.first = function(el, selector){
	        if(arguments.length === 1){
	            if(!u.isElement(el)){
	                console.warn('$api.first Function need el param, el param must be DOM Element');
	                return;
	            }
	            return el.children[0];
	        }
	        if(arguments.length === 2){
	            return this.dom(el, selector+':first-child');
	        }
	    };
	    u.last = function(el, selector){
	        if(arguments.length === 1){
	            if(!u.isElement(el)){
	                console.warn('$api.last Function need el param, el param must be DOM Element');
	                return;
	            }
	            var children = el.children;
	            return children[children.length - 1];
	        }
	        if(arguments.length === 2){
	            return this.dom(el, selector+':last-child');
	        }
	    };
	    u.eq = function(el, index){
	        return this.dom(el, ':nth-child('+ index +')');
	    };
	    u.not = function(el, selector){
	        return this.domAll(el, ':not('+ selector +')');
	    };
	    u.prev = function(el){
	        if(!u.isElement(el)){
	            console.warn('$api.prev Function need el param, el param must be DOM Element');
	            return;
	        }
	        var node = el.previousSibling;
	        if(node.nodeType && node.nodeType === 3){
	            node = node.previousSibling;
	            return node;
	        }
	    };
	    u.next = function(el){
	        if(!u.isElement(el)){
	            console.warn('$api.next Function need el param, el param must be DOM Element');
	            return;
	        }
	        var node = el.nextSibling;
	        if(node.nodeType && node.nodeType === 3){
	            node = node.nextSibling;
	            return node;
	        }
	    };
	    u.closest = function(el, selector){
	        if(!u.isElement(el)){
	            console.warn('$api.closest Function need el param, el param must be DOM Element');
	            return;
	        }
	        var doms, targetDom;
	        var isSame = function(doms, el){
	            var i = 0, len = doms.length;
	            for(i; i<len; i++){
	                if(doms[i].isSameNode(el)){
	                    return doms[i];
	                }
	            }
	            return false;
	        };
	        var traversal = function(el, selector){
	            doms = u.domAll(el.parentNode, selector);
	            targetDom = isSame(doms, el);
	            while(!targetDom){
	                el = el.parentNode;
	                if(el != null && el.nodeType == el.DOCUMENT_NODE){
	                    return false;
	                }
	                traversal(el, selector);
	            }

	            return targetDom;
	        };

	        return traversal(el, selector);
	    };
	    u.contains = function(parent,el){
	        var mark = false;
	        if(el === parent){
	            mark = true;
	            return mark;
	        }else{
	            do{
	                el = el.parentNode;
	                if(el === parent){
	                    mark = true;
	                    return mark;
	                }
	            }while(el === document.body || el === document.documentElement);

	            return mark;
	        }

	    };
	    u.remove = function(el){
	        if(el && el.parentNode){
	            el.parentNode.removeChild(el);
	        }
	    };
	    u.attr = function(el, name, value){
	        if(!u.isElement(el)){
	            console.warn('$api.attr Function need el param, el param must be DOM Element');
	            return;
	        }
	        if(arguments.length == 2){
	            return el.getAttribute(name);
	        }else if(arguments.length == 3){
	            el.setAttribute(name, value);
	            return el;
	        }
	    };
	    u.removeAttr = function(el, name){
	        if(!u.isElement(el)){
	            console.warn('$api.removeAttr Function need el param, el param must be DOM Element');
	            return;
	        }
	        if(arguments.length === 2){
	            el.removeAttribute(name);
	        }
	    };
	    u.hasCls = function(el, cls){
	        if(!u.isElement(el)){
	            console.warn('$api.hasCls Function need el param, el param must be DOM Element');
	            return;
	        }
	        if(el.className.indexOf(cls) > -1){
	            return true;
	        }else{
	            return false;
	        }
	    };
	    u.addCls = function(el, cls){
	        if(!u.isElement(el)){
	            console.warn('$api.addCls Function need el param, el param must be DOM Element');
	            return;
	        }
	        if('classList' in el){
	            el.classList.add(cls);
	        }else{
	            var preCls = el.className;
	            var newCls = preCls +' '+ cls;
	            el.className = newCls;
	        }
	        return el;
	    };
	    u.removeCls = function(el, cls){
	        if(!u.isElement(el)){
	            console.warn('$api.removeCls Function need el param, el param must be DOM Element');
	            return;
	        }
	        if('classList' in el){
	            el.classList.remove(cls);
	        }else{
	            var preCls = el.className;
	            var newCls = preCls.replace(cls, '');
	            el.className = newCls;
	        }
	        return el;
	    };
	    u.toggleCls = function(el, cls){
	        if(!u.isElement(el)){
	            console.warn('$api.toggleCls Function need el param, el param must be DOM Element');
	            return;
	        }
	       if('classList' in el){
	            el.classList.toggle(cls);
	        }else{
	            if(u.hasCls(el, cls)){
	                u.removeCls(el, cls);
	            }else{
	                u.addCls(el, cls);
	            }
	        }
	        return el;
	    };
	    u.val = function(el, val){
	        if(!u.isElement(el)){
	            console.warn('$api.val Function need el param, el param must be DOM Element');
	            return;
	        }
	        if(arguments.length === 1){
	            switch(el.tagName){
	                case 'SELECT':
	                    var value = el.options[el.selectedIndex].value;
	                    return value;
	                    break;
	                case 'INPUT':
	                    return el.value;
	                    break;
	                case 'TEXTAREA':
	                    return el.value;
	                    break;
	            }
	        }
	        if(arguments.length === 2){
	            switch(el.tagName){
	                case 'SELECT':
	                    el.options[el.selectedIndex].value = val;
	                    return el;
	                    break;
	                case 'INPUT':
	                    el.value = val;
	                    return el;
	                    break;
	                case 'TEXTAREA':
	                    el.value = val;
	                    return el;
	                    break;
	            }
	        }

	    };
	    u.prepend = function(el, html){
	        if(!u.isElement(el)){
	            console.warn('$api.prepend Function need el param, el param must be DOM Element');
	            return;
	        }
	        el.insertAdjacentHTML('afterbegin', html);
	        return el;
	    };
	    u.append = function(el, html){
	        if(!u.isElement(el)){
	            console.warn('$api.append Function need el param, el param must be DOM Element');
	            return;
	        }
	        el.insertAdjacentHTML('beforeend', html);
	        return el;
	    };
	    u.before = function(el, html){
	        if(!u.isElement(el)){
	            console.warn('$api.before Function need el param, el param must be DOM Element');
	            return;
	        }
	        el.insertAdjacentHTML('beforebegin', html);
	        return el;
	    };
	    u.after = function(el, html){
	        if(!u.isElement(el)){
	            console.warn('$api.after Function need el param, el param must be DOM Element');
	            return;
	        }
	        el.insertAdjacentHTML('afterend', html);
	        return el;
	    };
	    u.html = function(el, html){
	        if(!u.isElement(el)){
	            console.warn('$api.html Function need el param, el param must be DOM Element');
	            return;
	        }
	        if(arguments.length === 1){
	            return el.innerHTML;
	        }else if(arguments.length === 2){
	            el.innerHTML = html;
	            return el;
	        }
	    };
	    u.text = function(el, txt){
	        if(!u.isElement(el)){
	            console.warn('$api.text Function need el param, el param must be DOM Element');
	            return;
	        }
	        if(arguments.length === 1){
	            return el.textContent;
	        }else if(arguments.length === 2){
	            el.textContent = txt;
	            return el;
	        }
	    };
	    u.offset = function(el){
	        if(!u.isElement(el)){
	            console.warn('$api.offset Function need el param, el param must be DOM Element');
	            return;
	        }
	        var sl = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft);
	        var st = Math.max(document.documentElement.scrollTop, document.body.scrollTop);

	        var rect = el.getBoundingClientRect();
	        return {
	            l: rect.left + sl,
	            t: rect.top + st,
	            w: el.offsetWidth,
	            h: el.offsetHeight
	        };
	    };
	    u.css = function(el, css){
	        if(!u.isElement(el)){
	            console.warn('$api.css Function need el param, el param must be DOM Element');
	            return;
	        }
	        if(typeof css == 'string' && css.indexOf(':') > 0){
	            el.style && (el.style.cssText += ';' + css);
	        }
	    };
	    u.cssVal = function(el, prop){
	        if(!u.isElement(el)){
	            console.warn('$api.cssVal Function need el param, el param must be DOM Element');
	            return;
	        }
	        if(arguments.length === 2){
	            var computedStyle = window.getComputedStyle(el, null);
	            return computedStyle.getPropertyValue(prop);
	        }
	    };
	    u.jsonToStr = function(json){
	        if(typeof json === 'object'){
	            return JSON && JSON.stringify(json);
	        }
	    };
	    u.strToJson = function(str){
	        if(typeof str === 'string'){
	            return JSON && JSON.parse(str);
	        }
	    };
	    u.setStorage = function(key, value){
	        if(arguments.length === 2){
	            var v = value;
	            if(typeof v == 'object'){
	                v = JSON.stringify(v);
	                v = 'obj-'+ v;
	            }else{
	                v = 'str-'+ v;
	            }
	            var ls = uzStorage();
	            if(ls){
	                ls.setItem(key, v);
	            }
	        }
	    };
	    u.getStorage = function(key){
	        var ls = uzStorage();
	        if(ls){
	            var v = ls.getItem(key);
	            if(!v){return;}
	            if(v.indexOf('obj-') === 0){
	                v = v.slice(4);
	                return JSON.parse(v);
	            }else if(v.indexOf('str-') === 0){
	                return v.slice(4);
	            }
	        }
	    };
	    u.rmStorage = function(key){
	        var ls = uzStorage();
	        if(ls && key){
	            ls.removeItem(key);
	        }
	    };
	    u.clearStorage = function(){
	        var ls = uzStorage();
	        if(ls){
	            ls.clear();
	        }
	    };
	    u.fixIos7Bar = function(el){
	        return u.fixStatusBar(el);
	    };
	    u.fixStatusBar = function(el){
	        if(!u.isElement(el)){
	            console.warn('$api.fixStatusBar Function need el param, el param must be DOM Element');
	            return 0;
	        }
	        el.style.paddingTop = api.safeArea.top + 'px';
	        return el.offsetHeight;
	    };
	    u.fixTabBar = function(el){
	        if(!u.isElement(el)){
	            console.warn('$api.fixTabBar Function need el param, el param must be DOM Element');
	            return 0;
	        }
	        el.style.paddingBottom = api.safeArea.bottom + 'px';
	        return el.offsetHeight;
	    };
	    u.toast = function(title, text, time){
	        var opts = {};
	        var show = function(opts, time){
	            api.showProgress(opts);
	            setTimeout(function(){
	                api.hideProgress();
	            },time);
	        };
	        if(arguments.length === 1){
	            var time = time || 500;
	            if(typeof title === 'number'){
	                time = title;
	            }else{
	                opts.title = title+'';
	            }
	            show(opts, time);
	        }else if(arguments.length === 2){
	            var time = time || 500;
	            var text = text;
	            if(typeof text === "number"){
	                var tmp = text;
	                time = tmp;
	                text = null;
	            }
	            if(title){
	                opts.title = title;
	            }
	            if(text){
	                opts.text = text;
	            }
	            show(opts, time);
	        }
	        if(title){
	            opts.title = title;
	        }
	        if(text){
	            opts.text = text;
	        }
	        time = time || 500;
	        show(opts, time);
	    };
	    u.post = function(/*url,data,fnSuc,dataType*/){
	        var argsToJson = parseArguments.apply(null, arguments);
	        var json = {};
	        var fnSuc = argsToJson.fnSuc;
	        argsToJson.url && (json.url = argsToJson.url);
	        argsToJson.data && (json.data = argsToJson.data);
	        if(argsToJson.dataType){
	            var type = argsToJson.dataType.toLowerCase();
	            if (type == 'text'||type == 'json') {
	                json.dataType = type;
	            }
	        }else{
	            json.dataType = 'json';
	        }
	        json.method = 'post';
	        api.ajax(json,
	            function(ret,err){
	                if (ret) {
	                    fnSuc && fnSuc(ret);
	                }
	            }
	        );
	    };
	    u.get = function(/*url,fnSuc,dataType*/){
	        var argsToJson = parseArguments.apply(null, arguments);
	        var json = {};
	        var fnSuc = argsToJson.fnSuc;
	        argsToJson.url && (json.url = argsToJson.url);
	        argsToJson.data && (json.data = argsToJson.data);
	        if(argsToJson.dataType){
	            var type = argsToJson.dataType.toLowerCase();
	            if (type == 'text'||type == 'json') {
	                json.dataType = type;
	            }
	        }else{
	            json.dataType = 'json';
	        }
	        json.method = 'get';
	        api.ajax(json,
	            function(ret,err){
	                if (ret) {
	                    fnSuc && fnSuc(ret);
	                }
	            }
	        );
	    };
	    u.successToast = function(message, callback) {
	      message = message || '操作成功';
	      api.toast({
	        msg : message,
	        duration : 1000,
	        location : 'bottom'
	      });
	      $.isFunction(callback) && setTimeout(callback, 1000);
	    };
	    u.errorToast = function(message, callback) {
	      message = message || '操作失败';
	      api.toast({
	        msg : message,
	        duration : 1500,
	        location : 'bottom'
	      });
	      $.isFunction(callback) && setTimeout(callback, 1000); 
	    };
	    u.sendEvt = function(name, param) {
	    	if(!param) {
	    		param = {};
	    	}
	    	api.sendEvent({
		        name:name,
		        extra:param
	        });
	    };
	    u.listenEvt = function(name, callback) {
	    	api.addEventListener({
		        name:name
	        },function(ret,err){
	        	$.isFunction(callback) && callback(ret);
	        });
	    };
	    u.refreshHeader = function(callback, bgColor) {
	    	if(!bgColor) {
	    		bgColor = '';
	    	}
			api.setCustomRefreshHeaderInfo({
	            bgColor: bgColor,
	            images: ['widget://static/icon/polld11.png', 'widget://static/icon/polld22.png', 'widget://static/icon/polld33.png','widget://static/icon/polld44.png', 'widget://static/icon/polld11.png', 'widget://static/icon/polld22.png', 'widget://static/icon/polld33.png','widget://static/icon/polld44.png',],
	            tips: {
	                pull: '下拉刷新',
	                threshold: '松开立即刷新',
	                load: '正在刷新...'
	            }
	        }, function() {
	            //下拉刷新被触发，自动进入加载状态，使用 api.refreshHeaderLoadDone() 手动结束加载中状态
	            //下拉刷新被触发，使用 api.refreshHeaderLoadDone() 结束加载中状态  
	            $.isFunction(callback) && callback();
	            setTimeout(function() {
	                api.refreshHeaderLoadDone();
	            },1500);
	        });
	    };
		//复制文本
		u.copyText = function(text, callback) {
		    var clipBoard = api.require('clipBoard');
		    clipBoard.set({
		        value: text
		    }, function(ret, err) {
		        if (ret) {
		            if($.isFunction(callback)) {
		                callback();
		            } else {
		                API.successToast('复制成功');
		            }
		        } else {
		            alert(JSON.stringify(err));
		        }
		    });
		};
	    //执行运行
	    u.run = function(obj) {
	        apiready = function() {
	            if(!obj.hasOwnProperty('methods')) {
	                obj.methods={};
	            }
	            if(!obj.hasOwnProperty('data')) {
	                obj.data={};
	            }
	            $.extend(obj,obj.methods,obj.data);
	            delete obj.methods;
	            delete obj.data;
	            API.fixStatusBar(API.byId("header"));
	            obj.ready();
	            obj.on();
	        }
	    }
	    
		
	/*end*/


	    window.API = u;
	    

	})(window);


/***/ }),
/* 4 */
/***/ (function(module, exports) {

	module.exports = {
		// Host:'http://www.shinno-med.cn',// 正试环境
		// imgHost:'http://www.shinno-med.cn',//正试环境
		Host:'http://ylks.rctcl.com',// 测试环境
		imgHost:'http://ylks.rctcl.com',//测试环境
		meetingUrl:'https://www.vis-med.com',//会议地址
		CDN: "",
		Logo: "",
		Base: "../../../",
		BaseHtml: "../../",
		CommonTplPath: "../../public/common_tpl/",
		Database: "zhenchang", //数据库名称
		Version: 'v1',
		Key: {
			config: "app_config",
			user: "user",
			userinfo:'userinfo',//用户信息
			user_token : 'user_token',//登录token
			F_Account : 'F_Account',//账号
			F_Password : 'F_Password',//密码
			haspush: "haspush",
			pushid: "pushid",
		}
	}

/***/ }),
/* 5 */
/***/ (function(module, exports) {

	module.exports = {
		//点击事件
		tap: function(name, callback) {
			$(document).on('click', name, callback)
		},
		//change事件
		change: function(name, callback) {
			$(document).on('change', name, callback)
		},
		//其他事件
		event: function(event, name, callbak) {
			$(document).on(event, name, callback)
		},
		//批量事件
		more: function(events) {
			if(events && events.length > 0) {
				for (var i = 0; i < events.length; i++) {
					if(events[i] && events[i].length >= 2) {
						var _eventName = 'click';
						var _name = document;
						if(events[i].length >= 3) {
							_eventName = events[i][2];
						}
						if(events[i].length == 4) {
							_name = events[i][3];
						}
						$(_name).on(_eventName, events[i][0], events[i][1])
					}
				}
			}
		}
	}

/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

	var Config = __webpack_require__(4);
	/**
	 * 全局请求 obj
	 * api:接口名称
	 * params:请求参数
	 * render:模板对象
	 * renderBox:数据装载器 #box
	 * success:成功回调
	 * fail:失败回调
	 * division:分割数组
	 * successMsg:成功提示文字,默认成功不提示文字，传入此项提示
	 * noFailMsg:失败默认提示的是接口返回的数据
	 **/
	var HRequest = {
		getBaseUrl: function(apiName) {
			return Config.Host + "/api/" + apiName;
		},
		get: function(obj) {
			if(!obj) {
				return false;
			}
			obj.method = 'GET';
			this.request(obj);
		},
		post: function(obj) {
			if(!obj) {
				return false;
			}
			obj.method = 'POST';
			this.request(obj);
		},
		request: function(obj) {
			
			if(!obj || typeof(obj) != 'object') {
				return false;
			};
			if(!obj.params) {
				obj.params = {};
			}
			// console.log(JSON.stringify(obj) );
			api.ajax({
			    url: this.getBaseUrl(obj.api),
			    headers: this.getHeader(),
			    method: obj.method,
				// returnAll: true,
			    data: {
			        values: obj.params,
			        // files: {
			        //     file: 'fs://a.gif'
			        // }
			    }
			}, function(res, err) {
				// console.log(JSON.stringify(err));
			    if (res) {
			        // console.log("API:"+obj.api+" 返回数据");
	          //   	console.log(JSON.stringify(res) );
	          //   	console.log('obj:'+JSON.stringify(obj) );
	            	// api.alert({ msg: JSON.stringify(ret) });
	            	if(res.code == 1) {
						// 分割数组
						if(obj.division) {
							for (var i = 0; i < res.data.length; i++) {
								var result = [];
								for(var j=0;j < res.data[i].song.length;j+=obj.division){
								    result.push(res.data[i].song.slice(j,j+obj.division));
								}
								res.data[i].song = result;
							}
						}
						// console.log('resres:'+JSON.stringify(res));
			        	if(obj.render) {
			        		if(!obj.renderBox) {
			        			obj.renderBox = '#content-box';
			        		}
			        		//var html = template(obj.render+"-template", res);
			        		$(obj.renderBox).html(obj.render(res));
			        	}
			        	if(obj.successMsg) {
							API.successToast(obj.successMsg);
			        	} 
			        	if(obj.success) {
			        		$.isFunction(obj.success) && obj.success(res);
			        	}
			        }
			        else if(res.code == 101) {
			        	API.errorToast('登录失效，请重新登录', function() {
			        		//api方式打开登录界面
							Config.w.openWin('public_login');
			        	})
			        }
			        else {
			        	if(obj.fail) {
			        		$.isFunction(obj.fail) && obj.fail(res);
			        	}
			        	if(!obj.noFailMsg) {
							try{
								API.errorToast(res.msg);
							}catch(e){
								//TODO handle the exception
							}
			        	}
			        }
			    } else {
			        // api.alert({ msg: JSON.stringify(err) });
			        if(obj.fail) {
		        		$.isFunction(obj.fail) && obj.fail(res);
		        	}
					
		        	if(!obj.noFailMsg) {
		        		try{
		        			API.errorToast(res.msg);
		        		}catch(e){
		        			//TODO handle the exception
		        		}
		        	}
			    }
			});
		},
		getHeader: function() {
			// var login_info = API.getStorage(Config.Key.user_token);
			var login_info = api.getPrefs({
							   sync: true,
							   key: Config.Key.user_token
							});
			// console.log(login_info)
			var _token = login_info ? login_info : '';
			let lang = api.getGlobalData({key: 'lang'}) == 'en' ? 'en' : 'zh-cn'; //en 语言包
			var header = {
				'token': _token,
				lang: lang,
			};
			console.log('header',JSON.stringify(header))
			return header;
		}
	}
	module.exports = HRequest;

/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {

	var WINLIST = __webpack_require__(8);
	/**
	 * win打开通用类
	 * 属性isHead 0:无头部|1:自用头部|2:共用头部
	 * 属性login 0代表无需登录，默认无需登录，1代表需要登录才能访问
	 * title如果共用头部调用title属性
	 * path打开页面路径
	 */
	module.exports = {
	    Has : {},
	    openWin: function(name, params) {
	        var obj = this._checkPageUrl(name, params);
	        if(obj.winUrl) {
	            obj.params.openType = 'win';
	            api.openWin({
	                name : name,
	                url : obj.winUrl,
	                pageParam : obj.params
	            });
	        }
	    },
	    openFrame: function(name, params) {
	        var obj = this._checkPageUrl(name, params);
	        if(obj.winUrl) {
	            obj.params.openType = 'frame';
	            api.openFrame({
	                name: name,
	                url: obj.winUrl,
	                rect: this._frameCommonRect,
	                animation:this._frameCommonAnimation,
	                pageParam: obj.params
	            });
	        }
	    },
	    //关闭页面
	    closePage: function(name, openType) {
	       if(openType == 'frame') {
	           this.closeFrame(name);
	       } else {
	           this.closeWin(name);
	       } 
	    },
	    //关闭页面
	    closeWin : function(name, callback) {
	        var params = {
	            name : name
	        };
	        if (!name) {
	            params = {};
	        }
	        api.closeWin(params);
	        $.isFunction(callback) && (callback());
	    },
	    //frame隐藏
	    frameGroupHide:function(name) {
	        api.setFrameGroupAttr({
	            name: name,
	            hidden: true
	        });
	    },
	    //frame组显示
	    frameGroupShow:function(name) {
	        api.setFrameGroupAttr({
	            name: name,
	            hidden: false
	        });
	    },
	    closeFrame: function(name) {
	        var param = param = {};
	        if(name) {
	            param.name = name;
	        }
	        api.closeFrame(param);
	    },
	    _frameCommonRect: function() {
	        return {
	            x:0,
	            y:0,
	            w:api.winWidth,
	            h:api.winHeight
	        };
	    },
	    _frameCommonAnimation : {
	        type:"fade",       
	        duration:100,
	        subType:"from_bottom",
	    },
	    //根据名称获取
	    _checkPageUrl: function(name, params) {
	        if(!WINLIST.hasOwnProperty(name)) {
	            API.errorToast("未定义页面");
	            return false;
	        }
	        var names = name.split('_');
	        if(names.length <2) {
	            API.errorToast("错误传参方式");
	            return false;
	        }
	        var winObj = WINLIST[name];
	        var basePath = "../../";
	        var _url = basePath+names[0]+'/'+names[1]+'/'+names[1]+'.html';
	        var winUrl = _url;
	        if(!params) {
	            params = {};
	        }
	        switch(winObj.isHead) {
	            //自建header页面
	            case 1:
	                winUrl = basePath+names[0]+'/'+names[1]+'/head.html';
	                //console.log(winUrl);
	            break;
	            
	            //共用header页面
	            case 2:
	                winUrl = basePath+'public/head/head.html';
	                params.frameName = name + '_frame';
	                params.frameUrl = _url;
	                params.title = winObj.title;
	            break;
	            
	            //默认无header页面
	            default:
	            break;
	        }
	        return {winUrl: winUrl, params : params};
	    },
		// 加载动画
		isload: function(){
			$('.spinner_loading-outbox').remove();//移除以免重复加载
			var _hml = '<div class="spinner_loading-outbox isload">'+
							'<div class="spinner_loading-box">'+
								'<div class="spinner_loading">'+
									'<div class="spinner-container loading_container1">'+
										'<div class="circle1"></div>'+
										'<div class="circle2"></div>'+
										'<div class="circle3"></div>'+
										'<div class="circle4"></div>'+
									'</div>'+
									'<div class="spinner-container loading_container2">'+
										'<div class="circle1"></div>'+
										'<div class="circle2"></div>'+
										'<div class="circle3"></div>'+
										'<div class="circle4"></div>'+
									'</div>'+
									'<div class="spinner-container loading_container3">'+
										'<div class="circle1"></div>'+
										'<div class="circle2"></div>'+
										'<div class="circle3"></div>'+
										'<div class="circle4"></div>'+
									'</div>'+
								'</div>'+
								'<div class="text">数据正在加载中</div>'+
							'</div>'+
						'</div>';
			$('body').append(_hml);
		},
	}


/***/ }),
/* 8 */
/***/ (function(module, exports) {

	module.exports = {
		"public_login": {"isHead":0,"login":1,"title":"登录"},
		"public_web": {"isHead":0,"login":1,"title":""},
		"index_videolist": {"isHead":0,"login":1,"title":"视频列表"},
		"index_test": {"isHead":0,"login":1,"title":"考试页面"},
		"index_main": {"isHead":0,"login":1,"title":"首页"},
		"index_history": {"isHead":0,"login":1,"title":"历史数据"},
	}


/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {

	var Config = __webpack_require__(4);
	module.exports = {
		getUserToken: function() {
			// var coachId = API.getStorage(Config.Key.coach_id);
			var userToken = api.getPrefs({
			    sync: true,
			    key: Config.Key.user_token
			});
			return userToken;
		},
		getUserinfo: function() {
			var userinfo = api.getPrefs({
			    sync: true,
			    key: Config.Key.userinfo
			});
			return userinfo;
		},
		setUserinfo: function(userinfo) {
			api.setPrefs({
			    key: Config.Key.userinfo,
			    value: userinfo
			});
		},
		setUserToken: function(token) {
			api.setPrefs({
			    key: Config.Key.user_token,
			    value: token
			});
		}
	}

/***/ })
/******/ ]);